/**
 * @file MainWin.h
 * @author SoBigDog (623644973lubin@163.com)
 * @brief 
 * @version 0.1
 * @date 2020-04-09
 * 
 * @copyright Copyright (c) 2020
 * 
 */
#pragma once

#include <ncurses.h>
#include <cstring>
#include <unistd.h>
#include <iostream>
#include <sstream>
#include <iomanip> 

#include "TextBox.h"
#include "ListBox.h"
#include "StateBox.h"

#include "CSeerString.h"

#define MIN_WIN_LEN		80
#define MIN_WIN_HEIGHT		10

class MainWin
{
public:
	MainWin();
	~MainWin();

	void frash(void);

private:
	enum WIN_STAT {
		WIN_OK = 0,
		WIN_LEN_TOO_SMALL,
		WIN_HEIGHT_TOO_SMALL,
	};

	int m_max_x;
	int m_max_y;
	WINDOW * win;

	TextBox * m_p_textBox;
	ListBox * m_p_ListBox;
	StateBox * m_p_stateBox;

	WIN_STAT m_win_state;
};
